import { default as request, cloud } from '@/framework/utils/request'

// 新增接口开放服务信息数据
export function addQuerst(data) {
  return request({
    url: cloud.interfacePlatform + '/interfaceOpenService/add',
    method: 'post',
    data
  })
}

// 分页查询开放服务列表数据
export function serviceManagerPage(params) {
  return request({
    url: cloud.interfacePlatform + '/interfaceOpenService/serviceManagerPage',
    method: 'get',
    params
  })
}

// 获取接口服务管理单条数据详情
export function serviceDetail(params) {
  return request({
    url: cloud.interfacePlatform + '/interfaceServiceManager/detail',
    method: 'get',
    params
  })
}

// 获取可用系统列表
export function getSystemList(params) {
  return request({
    url: cloud.interfacePlatform + '/interfaceServiceManager/getSystemList',
    method: 'get',
    params
  })
}

// 我的开放服务信息所有数据
export function myOpenservicePage(params) {
  return request({
    url: cloud.interfacePlatform + '/interfaceOpenService/page',
    method: 'get',
    params
  })
}

// 删除接口开放服务信息数据
export function myOpenserviceDelete(data) {
  return request({
    url: cloud.interfacePlatform + '/interfaceOpenService/delete',
    method: 'post',
    data
  })
}

